home *** CD-ROM | disk | FTP | other *** search
- Hello.
-
- I am thinking of programming an AMOS game with robots that you can
- actually program in a BASIC-type language. Unfortunately I don't know
- how to write a decent arithmetic evaluation routine in AMOS. It should
- evaluate expressions in the correct order, e.g. "2+(3+4)*5" is 37. I've
- only managed to write an evaluation routine which doesn't care about
- calculation orders, e.g. "2+3*4" would be 20, not 14. I need your help
- here! Write me a routine that reads an expression as a string variable
- and stores the result in a number variable. If you do this I will
- eventually include your name in the game's documentation. Thanks in
- advance.
-
-
- /----------------------------------------------------------------------\
- | Joona Palaste | | | |
- | palaste@cc.helsinki.fi | | | |
- | G++ FR FW+ M- #20 D+ ADA N+++ W++ B OP+ |------- -----------------|
- | |------- -----------------|
- | | | | |
- | Finland rules! => | | | |
- \----------------------------------------------------------------------/
-
-
-